{
	"version": true,
	"from" : "@from", "size" : "@size",
	"sort": [{
		"@timestamp": {
			"order": "asc",
			"unmapped_type": "boolean"
		}
	}],
	"_source": {
		"excludes": []
	},
	"stored_fields": ["*"],
	"script_fields": {},
	"docvalue_fields": ["@timestamp"],
	"query": {
		"bool": {
			"must": [
			{
				/*使用query_string进行模糊查询*/
				"query_string": {
					"query": "request_params:\\\"courseId\\\"\\:\\\"@courseId\\\"",
					"analyze_wildcard": true,
					"default_field": "*"
				}
			},
			{
				"match_phrase": {
					/*根据用户id进行过滤*/
					"remote_user": {
						"query": "@userId"
					}
				}
			},
			/**查询request_uri带有/web/videoplay/videoStudy.html或者/web/videoplay/audioStudy.html的记录(学习记录)*/
			{
				"bool": {
					"should": [{
						"match_phrase": {
							"request_uri": "/web/videoplay/videoStudy.html"
						}
					}, {
						"match_phrase": {
							"request_uri": "/web/videoplay/audioStudy.html"
						}
					}],
					"minimum_should_match": 1
				}
			}],
			"filter": [],
			"should": [],
			"must_not": []
		}
	}
}